#include "StdAfx.h"
#include "FMDBDiagnostic.h"
#include "FMErrorCheck.h"

DBDiagnostic::DBDiagnostic(void)
{
}


DBDiagnostic::~DBDiagnostic(void)
{
}

void DBDiagnostic::SetSessionDiagnosticAttribute( OCISvcCtx *pSvcCtx,OCIError *pErr,const TCHAR *AttributeValue,ub4 AttrivuteCode )
{
	OCISession *pUser=NULL;
	CheckErr(pErr,OCIAttrGet(pSvcCtx,OCI_HTYPE_SVCCTX,&pUser,NULL,OCI_ATTR_SESSION,pErr));
	CheckErr(pErr,OCIAttrSet(pUser,OCI_HTYPE_SESSION,(void *)AttributeValue,(ub4)_tcslen(AttributeValue)*sizeof(TCHAR),AttrivuteCode,pErr));
}
